package com.nidu.demo.log.dto;

import com.nidu.demo.base.BasePageQry;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * API接口访问日志分页查询
 *
 * @author auto
 */
@Data
@Schema(description = "API接口访问日志分页查询")
@EqualsAndHashCode(callSuper = true)
public class ApiAccessLogPageQry extends BasePageQry {

    @Schema(description = "链路追踪编号", example = "trace_123456")
    private String traceId;

    @Schema(description = "用户编号", example = "1")
    private Long userId;

    @Schema(description = "应用名", example = "cola-demo")
    private String applicationName;

    @Schema(description = "请求地址", example = "/api/user/add")
    private String requestUrl;

    @Schema(description = "开始请求时间范围", example = "[\"2025-01-01 00:00:00\", \"2025-01-31 23:59:59\"]")
    private LocalDateTime[] beginTime;


}
